package com.zdlee.netty.server20.client.handler;

import com.zdlee.netty.server20.protocol.response.CreateGroupResponsePacket;
import com.zdlee.netty.server20.util.SessionUtil;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * @author zdlee
 * @description: ${DESCRIPTION}
 * @create 2018-12-01 14:20
 */
public class LogoutResponseHandler extends SimpleChannelInboundHandler<CreateGroupResponsePacket> {
    @Override
    protected void channelRead0(ChannelHandlerContext ctx, CreateGroupResponsePacket msg) throws Exception {
        SessionUtil.unBindSession(ctx.channel());
    }
}
